package com.asiainfo.dao;
/*
 * 
 * 消费记录数据库操作类
 */
import com.asiainfo.bean.Consume;
import com.asiainfo.database.JdbcTemplete;

public class Consume_Dao {
	//增加消费记录
	public int add(Consume consume){
		JdbcTemplete jt = new JdbcTemplete();
		String sql = "insert into consume(consume_date,card_id) values (?,?)";
		return jt.update(sql, consume.getDate(), consume.getCard_id());
	}
}
